Skip to content

Copy a file from S3 to the data store

Request

Requires nodes::service:datastore-manager permission.

Security
JWTAuthorizer
Path
nodeIDstringrequired

Node ID

Bodyapplication/json

Download config

locationstring

Target destination in data store

Example:"your-file.iso"
uristring

S3 location of source file

Example:"s3://your-bucket/your-file.iso"
curl -i -X POST \
  'https://apidocs.trustgrid.io/_mock/v2/node/{nodeID}/data-store/s3-download' \
  -H 'Authorization: Bearer <YOUR_JWT_HERE>' \
  -H 'Content-Type: application/json' \
  -d '{
    "location": "your-file.iso",
    "uri": "s3://your-bucket/your-file.iso"
  }'

Responses

OK